package com.egobuy.cms.service;

import com.egobuy.entity.Content;
import com.baomidou.mybatisplus.extension.service.IService;
import com.egobuy.pojo.BuyResult;
import com.egobuy.pojo.EgoBuyPager;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 戴着假发的程序员
 * @since 2021-11-22
 */
public interface IContentService extends IService<Content> {
    BuyResult<Content> saveContent(Content content);

    /**
     * 多条件的分页查询
     * @param page
     * @param size
     * @return
     */
    BuyResult<EgoBuyPager<Content>> queryByPage(int page, int size, Content content);

    /**
     * 查询
     * @param categoryId
     * @return
     */
    public BuyResult<List<Content>> queryByCategoryId(long categoryId);
}
